package com.guoxin.chapter6.singleton1;

public class MyObject {
	private static MyObject myObject;
	private MyObject(){}
	
	public static MyObject getInstance() {
		if (myObject == null) {
			myObject = new MyObject();
		}
		return myObject;
	}
}
